<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>VIP管理系统-控制台</title>
		<meta name="keywords" content="song" />
		<meta name="description" content="song" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<!-- basic styles -->
		<link href="/Public/assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="/Public/assets/css/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!-- page specific plugin styles -->

		<!-- fonts -->

		<link rel="stylesheet" href="/Public/assets/css/family.css" />

		<!-- ace styles -->

		<link rel="stylesheet" href="/Public/assets/css/ace.min.css" />
		<link rel="stylesheet" href="/Public/assets/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="/Public/assets/css/ace-skins.min.css" />
		<script src="/Public/assets/js/jquery-2.0.3.min.js"></script>
		<script src="/Public/admin/js/base.js"></script>
		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->

		<!-- inline styles related to this page -->

		<!-- ace settings handler -->
		<!-- <script src="/Public/assets/js/ace-extra.min.js"></script>-->

		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

		<!--[if lt IE 9]>
		<script src="assets/js/html5shiv.js"></script>
		<script src="assets/js/respond.min.js"></script>
		<![endif]-->
	</head>
	<style type="text/css">
		td,th,.table-bordered{text-align: center;}

.datalist_current_ahref{
	background: #6fb3e0!important;
}
.btn-light,.btn-info{
   margin-right: 3px;
}

	</style>



<body>


		<style type="text/css">
			.navbar {
				background: #58b1fc;
			}
			
			.green a {
				border-radius: 10px;
				max-height: 30px;
				margin-top: 7px;
				background: #4b93cf;
			}
			
			.green span {
				height: 30px;
				line-height: 30px;
				display: block;
			}
			
			.purple {
				background-color: #58b1fc !important;
				position: relative;
			}
			.purple:hover{
				   background: #add2f1;
			}
			.purple a {
				cursor: pointer;
				background-color: #58b1fc !important;
			}
			
			.purple .user_help {
				display: inline-block;
				height: 18px;
				width: 18px;
				background: url(/Public/Admin/images/user_help.png) no-repeat;
				vertical-align: middle;
			}
			
			.light-blue {
				background-color: #58b1fc !important;
			}
			
			.light-blue a {
				background-color: #58b1fc !important;
			}
			.submenu li{
				background: #389bcf!important;
			}
			.submenu li:hover{
				background: #2b83b1!important;
			}
			
			.nav-list li.active{
				background: #2b83b1!important;
			}
			.nav-list>li>.submenu:before{ border: 1px dashed #98c9e3;}
			.nav-list>li>.submenu>li:before {
			    content: "";
			    display: inline-block;
			    position: absolute;
			    width: 7px;
			    left: 20px;
			    top: 17px;
			    border-top: 1px dashed #98c9e3;
			}
			.m-logo{
				display: inline-block;
				width: 82px;
				height: 18px;
				vertical-align: middle;
				background: url('/Public/Admin/images/51m_logo.jpg') no-repeat;
			}
/*			.ace-nav>li.green>a {
				    background-color: #4b93cf;
				}
		.ace-nav>li.green>a:hover {
				    background-color: #188ef1;
				}*/
		</style>
		<div class="navbar navbar-default" id="navbar">
			<script type="text/javascript">
				try{ace.settings.check('navbar' , 'fixed')}catch(e){}
			</script>
<!-- 
			<div class="navbar-container" id="navbar-container">
				<div class="navbar-header pull-left">
					<a href="#" class="navbar-brand">
						<small>
							<i class="icon-leaf"></i>
						   VIP后台管理系统
						</small>
					</a>
				</div>
				<div class="navbar-header pull-right" role="navigation">
					<ul class="nav ace-nav">

						<li class="green">
							<a data-toggle="dropdown" class="dropdown-toggle" href="#">

								<span class="">账户余额：AU$<?php echo ($balance); ?></span>
							</a>


						</li>
						<li class="purple">
							<a data-toggle="dropdown" style="cursor:pointer" class="dropdown-toggle" onclick="location.href='/admin.php?s=/User/help/nav_id/101.html';" >

								<span class="" >使用帮助</span>
							</a>


						</li>
						<li class="light-blue">
							<a data-toggle="dropdown" href="#" class="dropdown-toggle">
								<img class="nav-user-photo" src="/Public/assets/avatars/avatar2.png" alt="Jason's Photo" />
								<span class="user-info" style="top: 14px;">
									<?php echo ($_SESSION['admin_user']['username']); ?>

								</span>

								<i class="icon-caret-down"></i>
							</a>

							<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
								<li>
									<a href="/admin.php?s=/Login/logout">
										<i class="icon-off"></i>
										退出
									</a>
								</li>
							</ul>
						</li>
					</ul>
				</div>
			</div>
 -->




			<div class="navbar-container" id="navbar-container">
				<div class="navbar-header pull-left">
					<a href="" class="navbar-brand">
						<small>
							<i class="m-logo"></i>
						   VIP后台管理系统
						</small>
					</a>
					<!-- /.brand -->
				</div>
				<!-- /.navbar-header -->

				<div class="navbar-header pull-right" role="navigation">
					<ul class="nav ace-nav daohang">

						<li class="green">
							<a data-toggle="dropdown" class="dropdown-toggle" href=" #">
								<span class="">账户余额：AU$<span id="money" style="display:inline;"><?php echo ($balance?$balance:'0'); ?><span/></span>
							</a>

						</li>
						<li class="purple">
							<a  tilte="使用帮助" class=" help" onclick="location.href='/admin.php?s=/User/help/nav_id/101.html';">
								<span alt="使用帮助"   class="user_help"></span>
								<span>使用帮助</span>
							</a>
						</li>
						<li class="light-blue">
							<a data-toggle="dropdown" href="#" class="dropdown-toggle">
								<img class="nav-user-photo" src="/Public/assets/avatars/avatar2.png" alt="Jason&#39;s Photo">
								<span class="user-info" style="top: 14px;">
									<?php echo ($_SESSION['admin_user']['username']); ?>
								</span>

								<i class="icon-caret-down"></i>
							</a>

							<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
								<li>
									<a href="<?php echo U('Login/logout');?>">
										<i class="icon-off"></i> 退出
									</a>
								</li>
							</ul>
						</li>
					</ul>
					<!-- /.ace-nav -->
				</div>
				<!-- /.navbar-header -->
			</div>
		</div>

		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<div class="main-container-inner">
				<a class="menu-toggler" id="menu-toggler" href="#">
					<span class="menu-text"></span>
				</a>

				<div class="sidebar" id="sidebar">
					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
					</script>

	<style type="text/css">
				.main-container:after{
					background: #e9f0f9;
				}
				.sidebar:before {
					background: #248dc1 !important;
				}
				
				.nav-list>li.active>a {
					background: #0e6390 !important;
					color: #FFFFFF !important;
				}
				
				.nav-list>li.active.open>a {
					background: #248dc1 !important;
					color: #FFFFFF !important;
				}
				
				.nav-list>li {
					border: none;
				}
				
				.nav-list>li a:hover>.arrow,
				.nav-list>li.active>a>.arrow,
				.nav-list>li.open>a>.arrow {
					color: #FFFFFF;
				}
				
				.sidebar-collapse {
					background: #248dc1 !important;
					border: none;
				}
				
				.nav-list li.active>a:after {
					border-right-color: #e9f0f9 !important;
				}
				
				.nav-list>li.active:after {
					border: 1px solid #e9f0f9 !important;
				}
				
				.submenu>li>a {
					border: none !important;
					color: #FFFFFF !important;
				}
				
				.nav-list>li.active>.submenu>li:before {
					border-top-color: #ffffff;
				}
				
				.nav-list>li.active>.submenu:before {
					border-left-color: #ffffff;
				}
				
				.submenu li:nth-of-type(2n+1) {
					background: #389bcf;
				}
				
				.submenu li:nth-of-type(2n) {
					background: #3294c8;
				}
				
				.nav-list>li .submenu {
					border: none;
				}
				
				.breadcrumb .home-icon {
					color: #b5b6b7;
				}
			</style>


					<ul class="nav nav-list">

					   <?php if(is_array($navlist)): $k = 0; $__LIST__ = $navlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$n): $mod = ($k % 2 );++$k; if($n["children"] != ''): ?><!-- <?php if($n["active"] == 1): ?><li class="active"><?php else: ?><li><?php endif; ?> -->
					       <li class="active">
							<a href=""  class="dropdown-toggle">
								<i class="<?php echo ($n["iconcls"]); ?>"></i>
								<span class="menu-text"> <?php echo ($n["text"]); ?> </span>
								<b class="arrow icon-angle-down"></b>
							</a>
								 <ul class="submenu">
								  <?php if(is_array($n["children"])): $i = 0; $__LIST__ = $n["children"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cate): $mod = ($i % 2 );++$i; if($cate["id"] == $navid): ?><li class="active"><?php else: ?><li><?php endif; ?>
											<a href="<?php echo U($cate['url'],array('nav_id'=>$cate['id']));?>">
												<i class="<?php echo ($cate["iconcls"]); ?>"></i>
												<?php echo ($cate["text"]); ?>
											</a>
								    </li><?php endforeach; endif; else: echo "" ;endif; ?>
								 </ul>
							 </li>
							<?php else: ?>
								 <li>
										<a href="/admin.php?s=/<?php echo ($n["url"]); ?>?nav_id=<?php echo ($cate["id"]); ?>">
											<i class="<?php echo ($n["iconcls"]); ?>"></i>
											<?php echo ($n["text"]); ?>
										</a>
							    </li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
					</ul><!-- /.nav-list -->

			<!-- 		<div class="sidebar-collapse" id="sidebar-collapse">
						<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" title="点击缩小导航" data-icon2="icon-double-angle-right"></i>
					</div> -->

					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
					</script>
				</div>

				<!-- 	<div class="ace-settings-container" id="ace-settings-container">
					<div class="btn btn-app btn-xs btn-warning ace-settings-btn guding" id="ace-settings-btn"  style="background: #f8fafc !important;">
						<i class="icon-cogs bigger-150" style="color: black !important;"></i>
					</div>

					<div class="ace-settings-box" id="ace-settings-box">
						<div>
							<div class="pull-left">
								<select id="skin-colorpicker" class="hide">
									<option data-skin="default"  value="#438EB9">#438EB9</option>
									<option data-skin="skin-1" value="#222A2D">#222A2D</option>
									<option data-skin="skin-2" value="#C6487E">#C6487E</option>
									<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
								</select>
							</div>
							<span>&nbsp; 选择皮肤</span>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-navbar" />
							<label class="lbl" for="ace-settings-navbar"> 固定导航条</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
							<label class="lbl" for="ace-settings-sidebar"> 固定滑动条</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-breadcrumbs" />
							<label class="lbl" for="ace-settings-breadcrumbs">固定面包屑</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
							<label class="lbl" for="ace-settings-rtl">切换到左边</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
							<label class="lbl" for="ace-settings-add-container">
								切换窄屏
								<b></b>
							</label>
						</div>
					</div>
				</div> -->
			</div><!-- /.main-container-inner -->
            <div id="_show_public_loading_div" class="_show_public_loading_div" style=" position: fixed; left: 50%;top: 45px;height: 40px;
			    line-height: 40px;
			    width: 150px;
			    text-align: center;
			    background: #87b87f;
			    border-bottom-left-radius: 8px;
			    border-bottom-right-radius: 8px;
			    border: 2px solid #F9F7F7;
			    border-top: none;
			    box-shadow: 0px 0px 10px #B1ADAD;
			    color: #FFF;z-index:9999;display:none; ">
             <img src="/Public/Admin/images/icon32_loading_light218877.gif" style="width:20px;vertical-align: middle;">
                处理中...
            </div>
			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="icon-double-angle-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->



<style type="text/css">
 .input-group {
    /* position: relative; */
    display: table;
    border-collapse: separate;
    width: 200px;
}   

</style>
<!--引入弹窗插件-->
<!--弹窗插件-->
<link rel="stylesheet" href="/Public/artdialog/skins/blue.css" />
<script type="text/javascript" src="/Public/artdialog/artDialog.js"></script>
<script type="text/javascript" src="/Public/artdialog/plugins/iframeTools.source.js"></script>
<script type="text/javascript" src="/Public/artdialog/common_opfun.js"></script>

<!--提示插件-->
<link rel="stylesheet" href="/Public/notifit/notifIt.css" />
<script src="/Public/notifit/notifIt.js"></script>




 <div class="main-content">
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
                try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
            </script>
            <ul class="breadcrumb">
                <li>
                    <i class="icon-home home-icon"></i>
    <span style="color:#428bca"><?php echo ($parent_nav["name"]); ?></span>
                </li>
                <li class="active"><?php echo ($one_nav["name"]); ?></li>
            </ul><!-- .breadcrumb -->
        </div>
            <style type="text/css">
                .page-content {
            padding: 0px 24px 24px;
                }
                
                .porlets-content_title {
                    height: 49px;
                    background: #b6d1f2;
                }
                .col-md-12 .icon-table{
                    color: #FFFFFF;
                    font-size: 18px;
                    font-weight: bolder;
                    line-height: 49px;
                }
            </style>
<div class="page-content">

    <form action="<?php echo U('MyWarehouse/MyWarehouseList');?>" method="post" id="searchForm">
    <input type="hidden" name="jump_stock" value="<?php echo ($jump_stock); ?>" id="inout" />
    <div class="row">
        <div class="col-md-12">
            <div class="block-web">
            <div class="row" style="background: #e9f0f9;height: 100%;padding:15px 0">
            <div >
               <div class="form-group" style="float: left;">
                <div class="input-group col-sm-3">
                       <input class="form-control" id="title" type="text" name="title" placeholder="请输入搜索条件商品自编号" size="15">
                    </div>
                    </div>

                <div class="form-group" style="float: left;">
                <div class="input-group col-sm-3">
                       <input class="form-control"  id="bar_code" type="text" name="bar_code" placeholder="请输入商品条形码" >
                    </div>
                    </div> 
              <div class="form-group" style="float: left;">
                <div class="input-group col-sm-3">
                       <input class="form-control"  id="goods_name" type="text" name="goods_name" placeholder="请输入商品名称">
                    </div>
                    </div>   
                             <div class="form-group" style="float: left;">
                <div class="input-group col-sm-3">
                       <input class="form-control"  id="chinese_goods_name" type="text" name="chinese_goods_name" placeholder="请输入商品中文名">
                    </div>
                    </div>     
                       
               <div class="form-group" style="float: left;">
                <div class="input-group col-sm-3">
                       <input class="form-control date-picker" id="start_time" type="text" name="start_time" data-date-format="dd-mm-yyyy" size="15">
                        <span class="input-group-addon">
                            <i class="icon-calendar bigger-110"></i>
                        </span>
                    </div>
                    </div>

                    <div class="form-group" style="float: left;">
                            <div class=" input-group  col-sm-3">
                                        <!-- <input name="end_time" readonly="readonly" class="laydate-icon" type="text" id="end_time"  size="15"> -->
                                        <input class="form-control date-picker" id="end_time" name="end_time" type="text" data-date-format="dd-mm-yyyy" size="15">
                                      <span class="input-group-addon">
                                        <i class="icon-calendar bigger-110"></i>
                                    </span>
                            </div>
                          
                        </div>
                  
                 <div style="float: left;">
                     <button type="button" class="btn btn-sm btn-info"  onclick="load()"> 搜索</button>
                    <button type="button" class="btn btn-sm btn-info" onclick="$('input[type=text]').val(['']);$('select').val('');load();"> 查看所有</button>
                    <button type="button" class="btn btn-sm btn-info" onclick="export_excel()"> 导出EXCEL</button>

                     <a href="#" class="btn btn-sm btn-info  radius-4" onclick="_es_openDilog902('<?php echo U('MyWarehouse/shop_cart');?>','查看购物车','chakangouwuche')">
                           查看购物车
                           <span class="badge badge-pink" id="pre_order_count">+0</span>
                         </a>  
                 </div>
                 <div class="clearfix"></div>
            </div>
            </div>
               <div class="porlets-content" style="margin: 0 -12px !important;position:relative;">
                    <div class="porlets-content_title">
                        <div class="row" >
                            <div class="col-md-12 icon-table"><?php echo ($one_nav["name"]); ?></div>
                        </div>
                    </div>
                    <div class="table-responsive">
                        <div id="order_list_item_content">
                            <div class="item-list-bd" style="height:100px;line-height:100px;text-align:center;">
                                <img src="/Public/admin/images/load3.gif" />
                                加载中...
                            </div>
                        </div>
                    </div><!--/table-responsive-->

            </div><!--/block-web-->
        </div><!--/col-md-12-->
    </div>
</form>
</div>
</div>
<script type="text/javascript" src="/Public/laydate/laydate.dev.js"></script>
<script type="text/javascript">
var cookiename="goods_order_<?php echo UID; ?>";
    laydate({
        elem: '#end_time ',
        festival: true, //显示节日
        istime: true,
        // min: laydate.now(),
        start: laydate.now(0,"YYYY/MM/DD hh:mm:ss"),  //设置开始时间为当前时间
        format: 'YYYY-MM-DD hh:mm:ss'
    })
        laydate({
        elem: '#start_time ',
        festival: true, //显示节日
        // min: laydate.now(),
        start: laydate.now(0,"YYYY/MM/DD hh:mm:ss"),  //设置开始时间为当前时间
        istime: true,
        format: 'YYYY-MM-DD hh:mm:ss'
    })

    $(function(){
        pre_order_count();
        goSearch("#searchForm","order_list_item_content");
      $(document).keydown(function(event){ 
        if(event.keyCode==13){ 
        load(); 
        } 
    })
    });
    function pre_order_count(){
      var ojson = [];
          //获取cookie值 
          var _list=getCookie(cookiename);
          if(_list!=""){
            ojson=JSON.parse(_list);
           } 
           if( ojson == null){return;}
          var count = ojson.length;
          if(count>=0){
            $('#pre_order_count').html('+'+count);
          }
          
    }
    function load(){
        goSearch("#searchForm","order_list_item_content");
        pre_order_count();
    }

    function toParentChilder(id){
        $('#parent_id').val(id);
        goSearch("#searchForm","order_list_item_content");
    }

function clock_load_dialog(){
   setTimeout(function(){
    var win=    art.dialog.opener;
                win.load();
                top.art.dialog().close();
    },800);
}

function _es_openDilog90(url, title,id){ 
     art.dialog.open(url, { title: title, width: '1200px', height: '90%', opacity: 0.2, id: id, fixed: true,lock:true, close:function(){load();}  });
}

function _es_openDilog902(url, title,id){ 
     art.dialog.open(url, { title: title, width: '1000px', height: '80%', opacity: 0.2, id: id, fixed: true,lock:true, close:function(){load();}  });
}
function export_excel(){
    var form = document.forms[0];
    form.action ="<?php echo U('MyWarehouse/export_excel');?>";
    form.submit();
     return true;

}
    function delete_ok(id){
        art.dialog({
            content: "确定要删除吗？",
            icon: 'question',
            lock: true,
            opacity: 0.2,
            id:'dele',
            ok: function () {
                var url="<?php echo U('Nav/delete_admin_ok');?>";
                $.ajax({
                    'url':url,
                    'data':{id:id},
                    'dataType':'json',
                    'type':'post',
                    success:function(data){
                        goSearch("#searchForm","order_list_item_content");
                        //_reload_currentpage_datalist('order_list_item_content');
                        // goSearch("#searchForm","order_list_item_content");
                        var retstatus = data.status == 1 ? "1" : "0";
                        showvfmsg(retstatus, data.info, 1900);

                    },error:function(){
                        showvfmsg('error','请求服务器失败',2000);
                    },complete:function(){

                    }
                });


            },
            cancelVal: '取消',
            cancel: true
        });
    }


//写入cookie
 function setCookie(c_name, value, expiredays){
    if(expiredays < 0){
        localStorage.removeItem(c_name);
    }
       localStorage.setItem(c_name,value); //存储名字为name值为caibin的变量
 }
//读取cookie   
 function getCookie(c_name){
    return  localStorage.getItem(c_name);
 }
</script>


		<!-- basic scripts -->

		<!--[if !IE]> -->
			<script src="/Public/assets/js/jquery-2.0.3.min.js"></script>

		<!-- <![endif]-->

		<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->

		<!--[if !IE]> -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='/Public/assets/js/jquery-2.0.3.min.js'>"+"<"+"script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>"+"<"+"script>");
</script>
<![endif]-->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='/Public/assets/js/jquery.mobile.custom.min.js'>"+"<"+"script>");
		</script>
		<script src="/Public/assets/js/bootstrap.min.js"></script>
		<script src="/Public/assets/js/typeahead-bs2.min.js"></script>

		<!-- page specific plugin scripts -->

		<!--[if lte IE 8]>
		  <script src="assets/js/excanvas.min.js"></script>
		<![endif]-->
        <script src="/Public/assets/js/ace-extra.min.js"></script>
		<script src="/Public/assets/js/jquery-ui-1.10.3.custom.min.js"></script>
		<script src="/Public/assets/js/jquery.ui.touch-punch.min.js"></script>
		<script src="/Public/assets/js/jquery.slimscroll.min.js"></script>
		<script src="/Public/assets/js/jquery.easy-pie-chart.min.js"></script>
		<script src="/Public/assets/js/jquery.sparkline.min.js"></script>
		<script src="/Public/assets/js/flot/jquery.flot.min.js"></script>
		<script src="/Public/assets/js/flot/jquery.flot.pie.min.js"></script>
		<script src="/Public/assets/js/flot/jquery.flot.resize.min.js"></script>
		

		<!-- ace scripts -->

		<script src="/Public/assets/js/ace-elements.min.js"></script>
		<script src="/Public/assets/js/ace.min.js"></script>





			


		<!-- inline scripts related to this page -->





</body>
</html>